//
//  SSHTunnel.h
//  tunneltool
//
//  Created by Andreas Hindborg on 17/05/11.
//  Copyright 2011 Andreas Hindborg. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "SSHTunnelConnection.h"
@class SSHSession;

@interface SSHTunnel : NSObject {
    @private NSString *remoteIP;
    @private NSString * localIP;
    @private uint32_t remotePort;
    @private uint16_t localPort;
    @private int localListenSocket;
    @private bool connected;
    @private SSHSession *session;
    @private bool shouldDie;
    @private NSMutableArray *connections;
}

@property (readonly,  assign)  bool     connected;

- (SSHTunnel*) initWithSession: (SSHSession*) aSession
                      remoteIP: (NSString*)   aRemoteIP
                    remotePort: (uint32_t)    aRemotePort
                       localIP: (NSString*)   aLocalIP
                     localPort: (uint32_t)    aLocalPort;
- (int) activate;
@end
